<!DOCTYPE html>
<html lang="zh_CN" xmlns:th="http://www.thymeleaf.org" th:with="title='发表帖子',active='index',hasEditor=false"
	  xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<!-- head 头部-->
<head th:replace="web/common/fragment::head(${title},null,'')"></head>
	<body>

		<div th:replace="web/layout/header::header(${active})"></div>

		<!--	main	-->
		<div class="fly-main" th:if="${session.sessionUser!=null}"  th:with="loginUser=${session.sessionUser}">
			<div class="user-center">
				<!--site tree-->
				<div class="layui-row">
					<div class="layui-col-md2 site-tree">
						<div th:include="web/view/center/template::siteTree('postEdit')"></div>
					</div>
					<div class="layui-col-md10 site-content">
						<div class="layui-form" th:if="${loginUser!=null}">
						<div class="layui-tab layui-tab-brief" lay-filter="user">
							<ul class="layui-tab-title">
								<li class="layui-this" th:text="${post==null?'发表新帖':'编辑帖子'}">发表新帖<!-- 编辑帖子 --></li>
							</ul>
							<div class="layui-form layui-tab-content" id="LAY_ucm" style="padding: 20px 0;">
								<div class="layui-tab-item layui-show">
									请前往论坛发表帖子
								</div>
							</div>
						</div>
					</div>
					</div>
				</div>
			</div>

		</div>
		<!--	contianer end	-->
<!--	底部版权		-->
<div th:replace="web/layout/footer::footer"></div>
<!--	搜索		-->
<div th:replace="web/layout/common::pop-search"></div>
<!--	右边工具栏	-->
<div th:replace="web/layout/common::right-bar"></div>
<!--	引入JS	-->
<div th:replace="web/common/fragment::js" ></div>

<script type="text/javascript">
    //实例化编辑器
    //建议使用工厂方法getEditor创建和引用编辑器实例，如果在某个闭包下引用该编辑器，直接调用UE.getEditor('editor')就能拿到相关的实例
    var ue = UE.getEditor('editor',{
        toolbars:[[
            'paragraph','bold','italic','fontsize','fontborder','forecolor','backcolor','|','anchor','link','|','lineheight',
            'indent','justifyleft','justifycenter','|','insertcode','insertimage','fullscreen', //全屏
        ]
        ],
        textarea:'content'
    });

</script>
<script th:inline="javascript">

</script>
	</body>
</html>
